<?php
 # Cargar la configuracion de los comandos...
 include "../config/config.app.php";

 $estado=`$CMD_getSambaStatus`;

?>
<html>
<head>
 <title>Servicio Samba</title>

<link rel="stylesheet" href="common/treeview.css" type="text/css">
<script src="common/treeview.js" language="javascript" type="text/javascript"></script>
<script language="javascript">
   function clickFolder(obj,url) {
      toggle(obj);
      parent.frmapp.location=url;
   }
   function clickNode(url) {
      parent.frmapp.location=url;
   }
</script>
<style>
body {
    font-family: Verdana,Geneva,Arial,Helvetica,sans-serif;
    font-size: 10pt;
    background-color: #c4cad4;
}
td {
    font-size: 0.9em;
}
</style>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td> 
      <table border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td><a class="folder" onClick="clickFolder(this,'../application/index.html')"><img src="common/minus.gif"><img src="icons/<?php
if ( "[CONFIGURADO.RUN]" == $estado ) {
   echo "server-on.gif";
}else if ( "[CONFIGURADO.STOP]" == $estado ) {
   echo "server-off.gif";
}else {
   echo "server-warning.gif";
}
?>"> Servicio Samba</a>
            <div style="display:block;"> 
              <table border="0" cellspacing="0" cellpadding="0">


                <tr> 
                  <td width="15"></td>
                  <td><a class="folder" onClick="clickFolder(this,'../application/gestion-cuentas.html')"><img src="common/minus.gif"><img src="icons/folder.gif" alt="Administracion de cuentas"> Cuentas de acceso</a>
                    <div style="display:block;"> 
                      <table border="0" cellspacing="0" cellpadding="0">
                        <tr> 
                          <td width="15"></td>
                          <td><a class="leaf" onClick="clickNode('../application/Usuarios.php');"><img src="common/link.gif"><img src="icons/user_go.gif"> Usuarios</a></td>
                        </tr>
                        <tr> 
                          <td width="15"></td>
                          <td><a class="leaf" onClick="clickNode('../application/Grupos.php');"><img src="common/lastlink.gif"><img src="icons/group_go.gif"> Grupos</a></td>
                        </tr>
                      </table>
                    </div>
                  </td>
                </tr>


                <tr> 
                  <td width="15"></td>
                  <td><a class="folder" onClick="clickFolder(this,'../application/gestion-recursos.html')"><img src="common/minus.gif"><img src="icons/folder.gif" alt="Administracion de recursos"> Gesti&oacute;n de recursos</a>
                    <div style="display:block;"> 
                      <table border="0" cellspacing="0" cellpadding="0">
                        <tr> 
                          <td width="15"></td>
                          <td><a class="leaf" onClick="clickNode('../application/Sesiones.php');"><img src="common/link.gif"><img src="icons/sesion.gif"> Sesiones</a></td>
                        </tr>
                        <tr> 
                          <td width="15"></td>
                          <td><a class="leaf" onClick="clickNode('../application/Recursos.php');"><img src="common/lastlink.gif"><img src="icons/drive.gif"> Carpetas compartidas</a></td>
                        </tr>
                      </table>
                    </div>
                  </td>
                </tr>

                <tr> 
                  <td width="15"></td>
                  <td><a class="folder" onClick="clickNode('../application/Administracion_servicio.php')"><img src="common/signblank.gif"><img src="icons/config.gif" alt="Configuracion"> Administraci&oacute;n</a>
                    <div style="display:block;"> 
                    </div>
                  </td>
                </tr>

              </table>
            </div>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>

</body>
</html>
